package com.zhku.shoppingspringboot.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.sun.org.apache.xpath.internal.operations.Bool;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.PipedReader;
import java.io.Serializable;

/**
 * @author hwy
 * @date 2024-12-27 08:29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shopcart")
public class ShopCart implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("购物车id")
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("商品skuid")
    private Long skuId;

    @ApiModelProperty("商品id")
    private Long goodsId;

    @ApiModelProperty("商品数量")
    private Integer count;

    @ApiModelProperty("选中状态")
    private Boolean selected;

    @ApiModelProperty("是否有效")
    private Boolean isEffective;

    @ApiModelProperty("是否收藏")
    private Boolean isCollect;

    @ApiModelProperty("邮费")
    private Float postFree;

    @ApiModelProperty("商品在购物车内的价格")
    private Float nowPrice;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("商品现价格的原价格")
    private Float nowOriginalPrice;

    @ApiModelProperty("商品属性")
    private String attrsText;
}
